from Integer
Retrieves an OrientationType
based on its integer degree value.
This method maps specific integer degree values to their corresponding OrientationType
constants:
- 0 degrees maps to LANDSCAPE
- 90 degrees maps to PORTRAIT
- 180 degrees maps to LANDSCAPE_REVERSED
- 270 degrees maps to PORTRAIT_REVERSED
Return
The corresponding OrientationType
, or null
if the input degree value does not match any predefined orientation. Consider throwing an IllegalArgumentException for unmapped values if a null return is not desired.
Parameters
degrees
The integer degree value of the desired orientation.